extends "../cTDR_4_1/cTDR_4_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()

	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("jxss",10)
	addSkillTxt("高能炮击：快速加载一定数量[随机]能量箭，对所有敌人造成伤害[伤害平摊;不超过5倍自身物攻]，每支箭造成36%物攻伤害[cd:10秒]")
	
var maxa = 55
var mina = 20

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "jxss":
		cst("高能炮击","000000",position)
		var chas = getAllChas(1)
		var acnt = sys.rndRan(mina,maxa)
		if !chas.size():return
		var dmg = acnt * 0.36 * att.atk / chas.size()
		dmg = min(att.atk*5,dmg)
		for i in chas:
			hurtChara(i,dmg,Chara.HurtType.PHY,Chara.AtkType.SKILL)

